package com.czh.www.util;


import com.czh.www.domain.DataPacket;
import com.czh.www.util.NetUtils;

public class IpMsgUtils {
    public static void sendMessage(String Text, String[] ips) {
        Text = Text.trim();

        for (int i = 0; i < ips.length; ++i) {
            DataPacket data = new DataPacket(32);
            data.setIp(ips[i]);
            data.setAdditional(Text);
            NetUtils.sendUdpPacket(data, data.getIp());
        }

    }
}
